﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;
using Abp.Application.Services.Dto;
using Abp.AutoMapper;
using Abp.Domain.Entities.Auditing;

namespace Sunlit.Business.Policies.Dto
{
    [AutoMapTo(typeof(Policy))]
    public class CreatePolicyInput
    {
        /// <summary>
        /// 标题
        /// </summary>
        [Required(ErrorMessage = "请输入标题")]
        [StringLength(256, ErrorMessage = "标题的最大长度为256个字符")]
        public string Title { get; set; }
        /// <summary>
        /// 图片地址
        /// </summary>
        [StringLength(512)]
        public string ImageUrl { get; set; }
        /// <summary>
        /// 简单描述
        /// </summary>
        [StringLength(512)]
        public string ShortDesc { get; set; }
        /// <summary>
        /// 内容
        /// </summary>
        [Required(ErrorMessage = "请输入内容")]
        public string Content { get; set; }
        /// <summary>
        /// 浏览次数
        /// </summary>
        public int Hits { get; set; }
        /// <summary>
        /// 所属地区
        /// </summary>
        public int? RegionId { get; set; }
        /// <summary>
        /// 所属类别
        /// </summary>
        public int PolicyCateId { get; set; }
    }
}
